<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>系统管理</title>
    <%@ include file="/common/util.jsp" %>
    <link href="${cdnctx}/dep/jquery/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="${cdnctx}/dep/kindeditor-4.1.7/themes/default/default.css"/>
    <script charset="utf-8" src="${cdnctx}/dep/kindeditor-4.1.7/kindeditor-min.js"></script>
    <script charset="utf-8" src="${cdnctx}/dep/kindeditor-4.1.7/lang/zh_CN.js"></script>
    <script>
        var editor;
        KindEditor.ready(function (K) {
            editor = K.create('textarea[name="content"]', {
                resizeType: 1,
                width: '1000px',
                fillDescAfterUploadImage: false,
                allowImageRemote: false,
                uploadJson: '${cdnctx}/dep/kindeditor-4.1.7/jsp/upload_json.jsp',
                fileManagerJson: '${cdnctx}/dep/kindeditor-4.1.7/jsp/file_manager_json.jsp',
                items: [
                    'fontname', 'fontsize', '|', 'bold', 'italic', 'underline', 'lineheight',
                    'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                    'insertunorderedlist', '|', 'emoticons', 'image', 'link']
            });
            K('input[name=getHtml]').click(function (e) {
                $('input[name="companydescription"]').val(editor.html());
                $('#loginMessageForm').submit();
            });
            K('input[name=clear]').click(function (e) {
                editor.html('');
            });
        });

    </script>
</head>
<body class="main">
<div class="-frame -style -luster" id="css_container">
    <!--首页框架页眉部分↓-->
    <%@ include file="/WEB-INF/pages/inc/header.jsp" %>
    <!--首页框架页眉部分↑-->

    <div class="content">

        <!-- Left导航菜单◎开始 -->
        <%@ include file="/WEB-INF/pages/inc/leftmenu.jsp" %>
        <!-- Left导航菜单◎结束 -->

        <div class="main-mid">
            <div class="pos"><img src="${cdnctx}/src/index/img/index.png"><a
                    href="<%--${cdnctx}/system/systemMenu.shtml--%>">系统管理 ></a>
                <a href="${cdnctx}/system/login/loginList.shtml">用户表管理 ></a>
                <a>${login.username}_公司信息 ${empty(description)?'增加':'编辑'}</a></div>
            <div class="divTable">
                <div style="margin-top: 40px">
                        <textarea name="content" style="width:800px;height:400px;visibility:hidden;">
                            ${description.companydescription}
                        </textarea>
                    <p>
                        </br>
                    <form action="${cdnctx}/system/login/editLoginMessage.shtml" id="loginMessageForm">
                        <input type="button" name="getHtml" value="提交"/>
                        <%--<input type="button" name="clear" value="清空内容"/>--%>
                        <%--<input type="reset" name="reset" value="重置"/>--%>
                        <input type="hidden" name="companydescription"/>
                        <input type="hidden" name="id" value=" ${description.id}"/>
                        <input type="hidden" name="loginid" value="${login.id}"/>
                        &nbsp;
                        <input type="checkbox" name="scrapped" value="1" ${description.scrapped==1?'checked':''}/>禁用
                    </p>
                    </form>
                </div>
            </div>
        </div>

    </div>

    <!--首页框架页尾部分↓-->
    <%@ include file="/WEB-INF/pages/inc/footer.jsp" %>
    <!--首页框架页尾部分↑-->
</div>
</body>
</html>